//
//  MyCollectionViewCell.m
//  PlayerFix
//
//  Created by DAT on 15/11/10.
//  Copyright © 2015年 DAT. All rights reserved.
//

#import "MyCollectionViewCell.h"

@implementation MyCollectionViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self creatSubviews];
    }
    return self;
}

- (void)creatSubviews{
    
    self.coverImg = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 80, 80)];
    self.coverImg.backgroundColor = [UIColor cyanColor];
    [self.contentView addSubview:self.coverImg];
    
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(95, 15, 260, 30)];
    self.titleLabel.backgroundColor = [UIColor purpleColor];
    [self.contentView addSubview:self.titleLabel];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
